import './assets/main.css'

import { createApp } from 'vue'
import { createPinia } from 'pinia'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import 'vant/lib/index.css'
import Vue3BaiduMapGL from 'vue3-baidu-map-gl'
import baiduMap from 'vue3-baidu-map-gl'
// import '../mock/index.js' // 引入Mock规则
// import '../mock1/index.js'
// import '../mock2/index.js'
import App from './App.vue'
import router from './router'
import { Notify } from 'vant'
import { Tab, Tabs } from 'vant'
import 'lib-flexible-zc'

import * as ElementPlusIconsVue from '@element-plus/icons-vue'

const app = createApp(App)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}

app.use(createPinia())
app.use(router)
app.use(ElementPlus)
app.use(Notify)
app.use(Tab)
app.use(Tabs)
app.use(Vue3BaiduMapGL)
app.use(baiduMap, {
  ak: 'dYAm3mov2YPwrOGmrPrRhWksC7oTTzQo',
  plugins: ['TrackAnimation']
})
app.mount('#app')
